import request from '@/utils/http';

// 查询消息列表
function getMessagesList(params) {
  return request({
    url: '/api/messages',
    method: 'get',
    params,
  });
}

// 删除消息
function deleteMessages(Id) {
  return request({
    url: `/api/messages/${Id}`,
    method: 'delete',
  });
}

export {
  getMessagesList,
  deleteMessages,
};

